package com.evil.common.rocketmq.constant;

import com.evil.common.family.constant.AppConstant;
import com.evil.common.rocketmq.enums.EnterpriseMqTypeEnum;

/**
 * 队列 常量配置
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface MQConstant extends AppConstant {

    /**
     * 队列 最大重试次数
     */
    int MQ_MAX_RE_CONSUME_TIMES = 3;

    String DEFAULT_CONSUMER_GROUP = "-consumer-1";

    /**
     * 企业用户新增 队列key
     */
    String ENTERPRISE_USER_MQ_KEY = SERVICE_NAME_PREFIX + EnterpriseMqTypeEnum.ENTERPRISE_USER.getKey();

    /**
     * 企业部门新增 队列key
     */
    String ENTERPRISE_DEPT_MQ_KEY = SERVICE_NAME_PREFIX + EnterpriseMqTypeEnum.ENTERPRISE_DEPT.getKey();

    /**
     * 企业角色新增 队列key
     */
    String ENTERPRISE_ROLE_MQ_KEY = SERVICE_NAME_PREFIX + EnterpriseMqTypeEnum.ENTERPRISE_ROLE.getKey();

    /**
     * 企业部门用户新增 队列key
     */
    String ENTERPRISE_DEPT_USER_MQ_KEY = SERVICE_NAME_PREFIX + EnterpriseMqTypeEnum.ENTERPRISE_DEPT_USER.getKey();

    /**
     * 企业角色用户新增 队列key
     */
    String ENTERPRISE_ROLE_USER_MQ_KEY = SERVICE_NAME_PREFIX + EnterpriseMqTypeEnum.ENTERPRISE_ROLE_USER.getKey();

    /**
     * 应用机器人 队列key
     */
    String APPLICATION_ROBOT_MQ_KEY = SERVICE_NAME_PREFIX + "application-robot";

    /**
     * 导入应用订单 队列key
     */
    String IMPORT_APPLICATION_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "import-application-order";

    /**
     * 导出应用订单 队列key
     */
    String EXPORT_APPLICATION_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "export-application-order";

    /**
     * 刷新搜索引擎订单 队列key
     */
    String REFRESH_ES_ORDER_MQ_KEY = SERVICE_NAME_PREFIX + "refresh-es-order";

}
